/* eslint-disable no-empty-function */
class ModalMainCtrl {
  constructor() {}
}

/**
 * @typedef {{ title: string;content: string;}} TradeType
 * @returns {(input: TradeType) => string}
 */
export function tradeAssemble() {
  /**
   * @param {TradeType} input
   * @returns {string}
   */
  return (input) => {
    if (input && input.title && input.content) {
      return `${input.title} | ${input.content}`;
    }
    return "";
  };
}

/**
 * @returns {(input: string) => string}
 */
export function WithParenthesis() {
  /**
   * @param {string} input
   * @returns {string}
   */
  return (input) => {
    if (input) {
      // should has content
      return `(${input})`;
    }
    return "";
  };
}
/**
 * @returns {(input: string) => string}
 */
export function WithBrace() {
  /**
   * @param {string} input
   * @returns {string}
   */
  return (input) => {
    if (input) {
      // should has content
      return `{${input}}`;
    }
    return "";
  };
}
/**
 * @returns {(input: string) => string}
 */
export function WithBracket() {
  /**
   * @param {string} input
   * @returns {string}
   */
  return (input) => {
    if (input) {
      // should has content
      return `[${input}]`;
    }
    return "";
  };
}
